💄 Show no-access cursor when rebuild is disallowed by admin
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<button @click="click()" :disabled="disabled">
|
||||
<button @click="click()" :disabled="disabled" :class="disallow ? 'disallowed': ''">
|
||||
<slot></slot>
|
||||
<slot name="text"></slot>
|
||||
<slot name="icon"></slot>
|
||||
@@ -14,6 +14,7 @@ export default {
|
||||
text: String,
|
||||
click: Function,
|
||||
disabled: Boolean,
|
||||
disallow: Boolean,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -38,6 +39,9 @@ button {
|
||||
fill: currentColor;
|
||||
}
|
||||
}
|
||||
&.disallowed {
|
||||
cursor: not-allowed !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Default visual settings, can be overridden when needed */
|
||||
|
||||
Reference in New Issue
Block a user