2019-03-04 00:15:41 +11:00
|
|
|
<template>
|
2019-07-05 17:17:44 +10:00
|
|
|
<div
|
|
|
|
v-if="!showNothing"
|
2020-10-20 03:38:49 +11:00
|
|
|
class="ScopeSelector"
|
|
|
|
>
|
|
|
|
<span
|
2019-07-05 17:17:44 +10:00
|
|
|
v-if="showDirect"
|
2020-10-20 03:38:49 +11:00
|
|
|
class="scope"
|
2019-07-05 17:17:44 +10:00
|
|
|
:class="css.direct"
|
|
|
|
:title="$t('post_status.scope.direct')"
|
|
|
|
@click="changeVis('direct')"
|
2020-10-20 03:38:49 +11:00
|
|
|
>
|
|
|
|
<FAIcon icon="envelope" class="button-icon" size="lg" />
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
class="scope"
|
2019-07-05 17:17:44 +10:00
|
|
|
v-if="showPrivate"
|
|
|
|
:class="css.private"
|
|
|
|
:title="$t('post_status.scope.private')"
|
|
|
|
@click="changeVis('private')"
|
2020-10-20 03:38:49 +11:00
|
|
|
>
|
|
|
|
<FAIcon icon="lock" class="button-icon" size="lg" />
|
|
|
|
</span>
|
|
|
|
<span
|
2019-07-05 17:17:44 +10:00
|
|
|
v-if="showUnlisted"
|
2020-10-20 03:38:49 +11:00
|
|
|
class="scope"
|
2019-07-05 17:17:44 +10:00
|
|
|
:class="css.unlisted"
|
|
|
|
:title="$t('post_status.scope.unlisted')"
|
|
|
|
@click="changeVis('unlisted')"
|
2020-10-20 03:38:49 +11:00
|
|
|
>
|
2020-10-20 06:35:46 +11:00
|
|
|
<FAIcon icon="unlock" class="button-icon" size="lg" />
|
2020-10-20 03:38:49 +11:00
|
|
|
</span>
|
|
|
|
<span
|
2019-07-05 17:17:44 +10:00
|
|
|
v-if="showPublic"
|
2020-10-20 03:38:49 +11:00
|
|
|
class="scope"
|
2019-07-05 17:17:44 +10:00
|
|
|
:class="css.public"
|
|
|
|
:title="$t('post_status.scope.public')"
|
|
|
|
@click="changeVis('public')"
|
2020-10-20 03:38:49 +11:00
|
|
|
>
|
2020-10-21 08:25:59 +11:00
|
|
|
<FAIcon icon="globe" class="button-icon" size="lg" />
|
2020-10-20 03:38:49 +11:00
|
|
|
</span>
|
2019-07-05 17:17:44 +10:00
|
|
|
</div>
|
2019-03-04 00:15:41 +11:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./scope_selector.js"></script>
|
2019-05-16 06:51:30 +10:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
2020-10-20 03:38:49 +11:00
|
|
|
.ScopeSelector {
|
|
|
|
|
|
|
|
.scope {
|
|
|
|
display: inline-block;
|
2019-05-16 06:51:30 +10:00
|
|
|
cursor: pointer;
|
2020-10-20 03:38:49 +11:00
|
|
|
min-width: 1.3em;
|
|
|
|
min-height: 1.3em;
|
|
|
|
text-align: center;
|
2019-05-16 06:51:30 +10:00
|
|
|
|
2020-10-20 03:38:49 +11:00
|
|
|
&.selected svg {
|
2019-05-16 06:51:30 +10:00
|
|
|
color: $fallback--lightText;
|
|
|
|
color: var(--lightText, $fallback--lightText);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|