enrecipes/app/components/modal/ShareChooser.vue

81 lines
2.2 KiB
Vue
Raw Normal View History

2020-11-10 18:28:48 +00:00
<template>
2021-02-28 15:10:26 +00:00
<Page>
<StackLayout class="dialogContainer" :class="appTheme">
<Label
class="er dialogIcon"
backgroundColor="#858585"
:color="iconColor"
:text="icon[helpIcon]"
/>
<Label class="dialogTitle orkm" :text="`${title}` | L" />
<GridLayout rows="auto, auto, auto" columns="*" class="actionsContainer">
<GridLayout
class="shareItem mdr"
:backgroundColor="bgColor"
row="0"
columns="*"
rows="auto, auto"
@tap="$modal.close('photo')"
>
<Label row="0" class="er" :text="icon.img" />
<Label row="1" class="item" :text="'pht' | L" textWrap="true" />
</GridLayout>
<GridLayout
class="shareItem mdr"
:backgroundColor="bgColor"
row="1"
columns="*"
rows="auto, auto"
@tap="$modal.close('recipe')"
>
<Label row="0" class="er" :text="icon.text" />
<Label row="1" class="item" :text="'rec' | L" textWrap="true" />
</GridLayout>
<!-- <GridLayout
class="shareItem mdr"
:backgroundColor="bgColor"
row="2"
columns="*"
rows="auto, auto"
@tap="$modal.close('file')"
>
<Label row="0" class="er" :text="icon.zip" />
<Label row="1" class="item" :text="'fil' | L" textWrap="true" />
</GridLayout> -->
2021-01-13 05:02:48 +00:00
</GridLayout>
2021-02-28 15:10:26 +00:00
<GridLayout rows="auto" columns="*, auto" class="actionsContainer">
<MDButton
variant="text"
col="1"
class="action orkm mdr"
:text="'cBtn' | L"
@tap="$modal.close()"
/>
2021-01-13 05:02:48 +00:00
</GridLayout>
2021-02-28 15:10:26 +00:00
</StackLayout>
</Page>
2020-11-10 18:28:48 +00:00
</template>
<script>
2021-02-28 15:10:26 +00:00
import { Application } from "@nativescript/core";
import { mapState } from "vuex";
2020-11-10 18:28:48 +00:00
export default {
2021-02-28 15:10:26 +00:00
props: ["title", "helpIcon"],
2020-11-10 18:28:48 +00:00
computed: {
2021-02-28 15:10:26 +00:00
...mapState(["icon"]),
2020-11-10 18:28:48 +00:00
appTheme() {
2021-02-28 15:10:26 +00:00
return Application.systemAppearance();
2020-11-10 18:28:48 +00:00
},
2021-01-13 05:02:48 +00:00
isLightMode() {
2021-02-28 15:10:26 +00:00
return this.appTheme == "light";
2021-01-13 05:02:48 +00:00
},
iconColor() {
2021-02-28 15:10:26 +00:00
return this.isLightMode ? "#f0f0f0" : "#1A1A1A";
2020-11-10 18:28:48 +00:00
},
2021-01-13 05:02:48 +00:00
bgColor() {
2021-02-28 15:10:26 +00:00
return this.isLightMode ? "#fff" : "#292929";
2020-11-10 18:28:48 +00:00
},
},
2021-02-28 15:10:26 +00:00
};
2020-11-10 18:28:48 +00:00
</script>