feat: Adds the ability to delete a portal (#5305)

This commit is contained in:
Sivin Varghese 2022-09-01 13:27:08 +05:30 committed by GitHub
parent 6e945dd61e
commit f4fc53b425
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 158 additions and 48 deletions

View file

@ -1,13 +1,22 @@
<template>
<modal :show.sync="show" :on-close="onClose">
<woot-modal-header :header-title="title" :header-content="message" />
<woot-modal-header
:header-title="title"
:header-content="message"
:header-content-value="messageValue"
/>
<div class="modal-footer delete-item">
<button class="alert button nice text-truncate" @click="onConfirm">
{{ confirmText }}
</button>
<button class="button clear text-truncate" @click="onClose">
<woot-button variant="clear" class="action-button" @click="onClose">
{{ rejectText }}
</button>
</woot-button>
<woot-button
color-scheme="alert"
class="action-button"
variant="smooth"
@click="onConfirm"
>
{{ confirmText }}
</woot-button>
</div>
</modal>
</template>
@ -25,8 +34,14 @@ export default {
onConfirm: { type: Function, default: () => {} },
title: { type: String, default: '' },
message: { type: String, default: '' },
messageValue: { type: String, default: '' },
confirmText: { type: String, default: '' },
rejectText: { type: String, default: '' },
},
};
</script>
<style lang="scss" scoped>
.action-button {
max-width: var(--space-giga);
}
</style>