思维导图
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 962 B After Width: | Height: | Size: 962 B |
|
Before Width: | Height: | Size: 656 B After Width: | Height: | Size: 656 B |
@@ -18,11 +18,11 @@ export class KSDashboardNinjaOverview extends Component{
|
||||
this.actionService = useService("action");
|
||||
this.notification = useService("notification");
|
||||
this.dialogService = useService("dialog");
|
||||
this.overviewTilesNames = [['All Dashboards', 'one'], ['All Charts', 'two'], ['Total Maps', 'three'],
|
||||
['Bookmarked Dashboards', 'four'], ['All Lists', 'five']]
|
||||
this.overviewTilesNames = [['全部仪表盘', 'one'], ['全部图表', 'two'], ['总地图', 'three'],
|
||||
['收藏的仪表盘', 'four'], ['全部列表', 'five']]
|
||||
this.state = useState({
|
||||
bookmarkedDashboards: false,
|
||||
filter: localStorage.getItem('dashboardFilter') || "All Dashboards",
|
||||
filter: localStorage.getItem('dashboardFilter') || "全部仪表盘",
|
||||
})
|
||||
|
||||
onWillStart(async () => {
|
||||
@@ -96,7 +96,7 @@ export class KSDashboardNinjaOverview extends Component{
|
||||
let dashboardId = parseInt(ev.currentTarget.dataset.dashboardId);
|
||||
let unBookmarkSvg = this.ks_overview.el.querySelector(`#unBookmark${dashboardId}`);
|
||||
let bookmarkSvg = this.ks_overview.el.querySelector(`#bookmark${dashboardId}`);
|
||||
let bookmarkCountTag = document.getElementById('Bookmarked Dashboards');
|
||||
let bookmarkCountTag = document.getElementById('收藏的仪表盘');
|
||||
if (unBookmarkSvg && bookmarkSvg){
|
||||
unBookmarkSvg.classList.toggle('d-none');
|
||||
bookmarkSvg.classList.toggle('d-none');
|
||||
|
||||
@@ -600,7 +600,7 @@
|
||||
</a>
|
||||
|
||||
<ul class="dropdown-menu">
|
||||
<li><a class="dropdown-item" href="#" t-on-click="onFilterChange">All Dashboards</a></li>
|
||||
<li><a class="dropdown-item" href="#" t-on-click="onFilterChange">全部仪表盘</a></li>
|
||||
<li><a class="dropdown-item" href="#" t-on-click="onFilterChange">Bookmarked</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||