2020-10-21 17:54:45 +00:00
|
|
|
<template>
|
2020-12-07 14:45:00 +00:00
|
|
|
<Page>
|
|
|
|
<StackLayout class="dialogContainer" :class="appTheme">
|
|
|
|
<Label class="dialogTitle orkm" :text="`${title}` | L" textWrap="true" />
|
|
|
|
<Label v-if="description" class="dialogDescription" :text="description" textWrap="true" />
|
|
|
|
<GridLayout rows="auto" columns="*, auto, auto" class="actionsContainer">
|
2020-12-29 10:35:19 +00:00
|
|
|
<MDButton v-if="cancelButtonText" :rippleColor="rippleColor" variant="text" col="1" class="action orkm" :text="`${cancelButtonText}` | L" @tap="$modal.close(false)" />
|
2020-12-07 14:45:00 +00:00
|
|
|
<MDButton :rippleColor="rippleColor" variant="text" col="2" class="action orkm" :text="`${okButtonText}` | L" @tap="$modal.close(true)" />
|
|
|
|
</GridLayout>
|
|
|
|
</StackLayout>
|
|
|
|
</Page>
|
2020-10-21 17:54:45 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-12-07 14:45:00 +00:00
|
|
|
import {
|
|
|
|
Application
|
|
|
|
}
|
|
|
|
from "@nativescript/core"
|
2020-10-21 17:54:45 +00:00
|
|
|
export default {
|
2020-12-07 14:45:00 +00:00
|
|
|
props: [ "title", "description", "cancelButtonText", "okButtonText" ],
|
2020-10-24 18:02:35 +00:00
|
|
|
computed: {
|
2020-11-10 18:28:48 +00:00
|
|
|
appTheme() {
|
2020-10-24 18:02:35 +00:00
|
|
|
return Application.systemAppearance()
|
|
|
|
},
|
2020-11-10 18:28:48 +00:00
|
|
|
rippleColor() {
|
2020-12-29 10:35:19 +00:00
|
|
|
return this.appTheme == "light" ? "rgba(134,142,150,0.2)" : "rgba(206,212,218,0.1)"
|
2020-11-10 18:28:48 +00:00
|
|
|
},
|
2020-10-22 18:36:50 +00:00
|
|
|
},
|
2020-10-21 17:54:45 +00:00
|
|
|
}
|
|
|
|
</script>
|