Files
mixtape/zero.Backoffice.UI/app/editor/_fields/password-hash.vue
T

54 lines
1.0 KiB
Vue
Raw Normal View History

2021-12-09 10:51:10 +01:00
<template>
<div class="ui-password-hash">
<input value="******************" type="text" class="ui-input" readonly="readonly" disabled="disabled" />
<ui-button v-if="!disabled" label="change" type="light" @click="open" />
</div>
</template>
<script>
2021-12-09 20:32:15 +01:00
//import Overlay from 'zero/helpers/overlay.js';
//import PasswordChangeOverlay from 'zero/components/overlays/password-change.vue';
2021-12-09 10:51:10 +01:00
export default {
props: {
value: {
type: String,
default: null
},
disabled: {
type: Boolean,
default: false
},
placeholder: {
type: [String, Function],
default: null
},
entity: Object
},
methods: {
open()
{
2021-12-09 20:32:15 +01:00
//return Overlay.open({
// component: PasswordChangeOverlay
//}).then(hash =>
//{
// this.$emit('input', hash);
//});
2021-12-09 10:51:10 +01:00
}
}
}
</script>
<style lang="scss">
.ui-password-hash
{
display: grid;
grid-template-columns: 1fr auto;
grid-gap: var(--padding-xxs);
}
</style>