security
This commit is contained in:
@@ -70,7 +70,6 @@ export default {
|
||||
return false;
|
||||
},
|
||||
isKeyActive(id) {
|
||||
|
||||
if(this.checkSecurityDisabled('ncSoftkeys')) return false;
|
||||
|
||||
let r = this.$store.getters.getNcSoftKeyStatus(id);
|
||||
|
||||
@@ -42,6 +42,8 @@ export default {
|
||||
},
|
||||
disabled() {
|
||||
var _disabled = true;
|
||||
|
||||
if(this.checkSecurityDisabled('userSoftkeys')) return true;
|
||||
for (const key in this.activeSubKeys) {
|
||||
if (this.activeSubKeys[key]) _disabled = false;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="soft-key" :class="{ disabled: disabled, selected: selected}">
|
||||
<div class="soft-key" :class="{ disabled: disabled || checkSecurityDisabled('userSoftkeys'), selected: selected}">
|
||||
<header>{{title}}</header>
|
||||
<div class="detail">
|
||||
<button class="star" :class="{active: starred}" @click="toggleStar()"><i class="fa fa-star"></i></button>
|
||||
@@ -37,7 +37,7 @@ export default {
|
||||
this.ischecked = this.checked;
|
||||
},
|
||||
methods: {
|
||||
toggleCheck() {
|
||||
toggleCheck() {
|
||||
this.$emit("checkChanged");
|
||||
this.$forceUpdate();
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="soft-key command" :class="{disabled: disabled, selected: selected, active: active}">
|
||||
<div class="soft-key command" :class="{disabled: disabled || checkSecurityDisabled('userSoftkeys'), selected: selected, active: active}">
|
||||
|
||||
<div class="detail no-title">
|
||||
<button class="star" :class="{active: starred}" @click="toggleStar()"><i class="fa fa-star"></i></button>
|
||||
|
||||
Reference in New Issue
Block a user