Skip to content
Snippets Groups Projects
Commit c3139e71 authored by Xiao Gui's avatar Xiao Gui
Browse files

chore: clean up code

parent 706f084b
No related branches found
No related tags found
No related merge requests found
......@@ -259,6 +259,9 @@ Interactive atlas viewer requires **webgl2.0**, and the \`EXT_color_buffer_float
})
}
/**
* TODO deprecate
*/
const meta = 'res/json/allAggregatedData.json'
fetch(meta)
......
......@@ -81,7 +81,7 @@
</cookie-agreement>
</div>
</tab>
<tab heading="KG ToS">
<tab heading="Terms of Use">
<div class="mt-2">
<kgtos-component>
</kgtos-component>
......
......@@ -15,8 +15,9 @@
</div>
<div
(click)="dismiss($event)"
class="ml-2"
*ngIf="dismissable" close>
<i class="fas fa-remove"></i>
<i class="fas fa-times"></i>
</div>
<timer-component
*ngIf="timeout > 0"
......
......@@ -262,6 +262,11 @@ markdown-dom pre code
border-bottom-color: rgba(0, 0, 0, 0.8);
}
.darktheme.popover.popover-right>.arrow::after
{
border-right-color: rgba(0, 0, 0, 0.8);
}
.r-90
{
transform: rotate(90deg)!important;
......
......@@ -29,7 +29,7 @@
<!-- modality picker -->
<div>
<span
placement="bottom"
placement="right"
container="body"
[popover]="countedDataM.length > 0 ? modalityPicker : null"
[outsideClick]="true"
......
......@@ -480,7 +480,6 @@ export class NehubaViewerUnit implements OnDestroy{
}
private filterLayers(l:any,layerObj:any):boolean{
debugger
/**
* if selector is an empty object, select all layers
*/
......
......@@ -97,6 +97,7 @@ export class SigninBanner implements OnInit, OnDestroy{
})
}
// TODO handle mobile
handleRegionClick({ mode = 'single', region }){
if (!region)
return
......
......@@ -17,11 +17,12 @@ export class ToastContainerDirective{
){
const toastComponentFactory = this.cfr.resolveComponentFactory(ToastComponent)
this.toastService.showToast = (message, config) => {
this.toastService.showToast = (message, config = {}) => {
const _config = Object.assign({}, defaultToastConfig, config
? config
: {})
const _config = {
...defaultToastConfig,
...config
}
const toastComponent = this.viewContainerRef.createComponent(toastComponentFactory)
if(typeof message === 'string')
toastComponent.instance.message = message
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment