sonar low
This commit is contained in:
@@ -122,16 +122,16 @@ export default {
|
||||
case 'Map':
|
||||
case 'CheckMap':
|
||||
// 沒有 filter Id, 沒有暫存 tempFilterId Id 就不能存檔
|
||||
return this.tempFilterId ? false : true;
|
||||
return !this.tempFilterId;
|
||||
case 'Conformance':
|
||||
case 'CheckConformance':
|
||||
return this.conformanceFilterTempCheckId || this.conformanceLogTempCheckId ? false : true;
|
||||
return !(this.conformanceFilterTempCheckId || this.conformanceLogTempCheckId);
|
||||
}
|
||||
},
|
||||
showIcon: function() {
|
||||
let result = true;
|
||||
|
||||
result = ['FILES', 'UPLOAD'].includes(this.navViewName) ? false : true;
|
||||
result = !['FILES', 'UPLOAD'].includes(this.navViewName);
|
||||
return result;
|
||||
},
|
||||
noShowSaveButton: function() {
|
||||
@@ -157,7 +157,7 @@ export default {
|
||||
if(this.$route.params.type === 'filter') {
|
||||
this.createFilterId= this.$route.params.fileId;
|
||||
}
|
||||
this.showNavbarBreadcrumb = this.$route.matched[0].name !== ('AuthContainer') ? true : false;
|
||||
this.showNavbarBreadcrumb = this.$route.matched[0].name !== ('AuthContainer');
|
||||
this.getNavViewName();
|
||||
},
|
||||
methods: {
|
||||
@@ -251,9 +251,12 @@ export default {
|
||||
break;
|
||||
case 'COMPARE':
|
||||
switch(name) {
|
||||
case 'dummy':
|
||||
case 'CompareDashboard':
|
||||
valueToSet = 'DASHBOARD';
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -274,7 +277,6 @@ export default {
|
||||
*/
|
||||
async saveModal() {
|
||||
// 協助判斷 MAP, CONFORMANCE 儲存有「送出」或「取消」。
|
||||
let isSaved;
|
||||
// 傳給 Map,通知 Sidebar 要關閉。
|
||||
this.$emitter.emit('saveModal', false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user