💄 Show no-access cursor when rebuild is disallowed by admin

This commit is contained in:
Alicia Sykes
2021-06-22 23:06:59 +01:00
parent 23e14662e5
commit e94ff4b952
3 changed files with 29 additions and 4 deletions

View File

@@ -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 */