mirror of https://github.com/bra1n/townsquare.git
moved image opt-in to grimoire tab
This commit is contained in:
parent
8bd3c9b450
commit
819534dab6
|
@ -69,6 +69,16 @@
|
||||||
/>
|
/>
|
||||||
</em>
|
</em>
|
||||||
</li>
|
</li>
|
||||||
|
<li v-if="!edition.isOfficial" @click="imageOptIn">
|
||||||
|
<small>Show Custom Images</small>
|
||||||
|
<em
|
||||||
|
><font-awesome-icon
|
||||||
|
:icon="[
|
||||||
|
'fas',
|
||||||
|
grimoire.isImageOptIn ? 'check-square' : 'square'
|
||||||
|
]"
|
||||||
|
/></em>
|
||||||
|
</li>
|
||||||
<li @click="setBackground">
|
<li @click="setBackground">
|
||||||
Background image
|
Background image
|
||||||
<em><font-awesome-icon icon="image"/></em>
|
<em><font-awesome-icon icon="image"/></em>
|
||||||
|
@ -107,19 +117,6 @@
|
||||||
Send Characters
|
Send Characters
|
||||||
<em><font-awesome-icon icon="theater-masks"/></em>
|
<em><font-awesome-icon icon="theater-masks"/></em>
|
||||||
</li>
|
</li>
|
||||||
<li
|
|
||||||
v-if="session.isSpectator && !edition.isOfficial"
|
|
||||||
@click="imageOptIn"
|
|
||||||
>
|
|
||||||
Show Custom Images
|
|
||||||
<em
|
|
||||||
><font-awesome-icon
|
|
||||||
:icon="[
|
|
||||||
'fas',
|
|
||||||
grimoire.isImageOptIn ? 'check-square' : 'square'
|
|
||||||
]"
|
|
||||||
/></em>
|
|
||||||
</li>
|
|
||||||
<li
|
<li
|
||||||
v-if="session.voteHistory.length"
|
v-if="session.voteHistory.length"
|
||||||
@click="toggleModal('voteHistory')"
|
@click="toggleModal('voteHistory')"
|
||||||
|
@ -266,7 +263,7 @@ export default {
|
||||||
},
|
},
|
||||||
imageOptIn() {
|
imageOptIn() {
|
||||||
const popup =
|
const popup =
|
||||||
"Are you sure you want to allow custom images? A malicious storyteller might get access to your IP address this way.";
|
"Are you sure you want to allow custom images? A malicious script file author might track your IP address this way.";
|
||||||
if (this.grimoire.isImageOptIn || confirm(popup)) {
|
if (this.grimoire.isImageOptIn || confirm(popup)) {
|
||||||
this.toggleImageOptIn();
|
this.toggleImageOptIn();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue