mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Refactor use of translation key in vue template slightly
This commit is contained in:
parent
9732b80298
commit
c1c632dcb0
@ -17,7 +17,7 @@
|
|||||||
<slot name="body"></slot>
|
<slot name="body"></slot>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer" v-if="!hideFooter">
|
<div class="modal-footer" v-if="!hideFooter">
|
||||||
<button class="btn btn-cancel" @click="$emit('close')">{{ trans(modalActionClose) }}</button>
|
<button class="btn btn-cancel" @click="$emit('close')">{{ trans(MODAL_ACTION_CLOSE) }}</button>
|
||||||
<slot name="footer"></slot>
|
<slot name="footer"></slot>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -56,10 +56,8 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
emits: ['close'],
|
emits: ['close'],
|
||||||
setup() {
|
setup() {
|
||||||
const modalActionClose = MODAL_ACTION_CLOSE;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
modalActionClose,
|
MODAL_ACTION_CLOSE,
|
||||||
trans
|
trans
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user