parent
							
								
									42b4949b7f
								
							
						
					
					
						commit
						44d2c0195a
					
				
					 6 changed files with 31 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -19,7 +19,7 @@
 | 
			
		|||
		{{ folder.name }}
 | 
			
		||||
	</p>
 | 
			
		||||
	<p class="upload" v-if="$store.state.settings.uploadFolder == folder.id">
 | 
			
		||||
		{{ $t('upload-folder') }}
 | 
			
		||||
		{{ $t('uploadFolder') }}
 | 
			
		||||
	</p>
 | 
			
		||||
</div>
 | 
			
		||||
</template>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,7 +8,7 @@
 | 
			
		|||
		ref="text"
 | 
			
		||||
		@keypress="onKeypress"
 | 
			
		||||
		@paste="onPaste"
 | 
			
		||||
		:placeholder="$t('input-message-here')"
 | 
			
		||||
		:placeholder="$t('inputMessageHere')"
 | 
			
		||||
		v-autocomplete="{ model: 'text' }"
 | 
			
		||||
	></textarea>
 | 
			
		||||
	<div class="file" @click="file = null" v-if="file">{{ file.name }}</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,8 +4,8 @@
 | 
			
		|||
	<div class="_content">
 | 
			
		||||
		<p v-if="!data && !$store.state.i.twoFactorEnabled"><mk-button @click="register">{{ $t('_2fa.registerDevice') }}</mk-button></p>
 | 
			
		||||
		<template v-if="$store.state.i.twoFactorEnabled">
 | 
			
		||||
			<h2 class="heading">{{ $t('totp-header') }}</h2>
 | 
			
		||||
			<p>{{ $t('already-registered') }}</p>
 | 
			
		||||
			<h2 class="heading">{{ $t('_2fa.totpHeader') }}</h2>
 | 
			
		||||
			<p>{{ $t('_2fa.alreadyRegistered') }}</p>
 | 
			
		||||
			<mk-button @click="unregister">{{ $t('unregister') }}</mk-button>
 | 
			
		||||
 | 
			
		||||
			<template v-if="supportsCredentials">
 | 
			
		||||
| 
						 | 
				
			
			@ -24,7 +24,7 @@
 | 
			
		|||
				<mk-switch v-model="usePasswordLessLogin" @change="updatePasswordLessLogin" v-if="$store.state.i.securityKeysList.length > 0">{{ $t('passwordLessLogin') }}</mk-switch>
 | 
			
		||||
 | 
			
		||||
				<mk-info warn v-if="registration && registration.error">{{ $t('something-went-wrong') }} {{ registration.error }}</mk-info>
 | 
			
		||||
				<mk-button v-if="!registration || registration.error" @click="addSecurityKey">{{ $t('register') }}</mk-button>
 | 
			
		||||
				<mk-button v-if="!registration || registration.error" @click="addSecurityKey">{{ $t('_2fa.registerKey') }}</mk-button>
 | 
			
		||||
 | 
			
		||||
				<ol v-if="registration && !registration.error">
 | 
			
		||||
					<li v-if="registration.stage >= 0">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,9 +18,9 @@
 | 
			
		|||
		</mk-switch>
 | 
			
		||||
	</div>
 | 
			
		||||
	<div class="_content">
 | 
			
		||||
		<mk-button @click="readAllNotifications">{{ $t('mark-as-read-all-notifications') }}</mk-button>
 | 
			
		||||
		<mk-button @click="readAllUnreadNotes">{{ $t('mark-as-read-all-unread-notes') }}</mk-button>
 | 
			
		||||
		<mk-button @click="readAllMessagingMessages">{{ $t('mark-as-read-all-talk-messages') }}</mk-button>
 | 
			
		||||
		<mk-button @click="readAllNotifications">{{ $t('markAsReadAllNotifications') }}</mk-button>
 | 
			
		||||
		<mk-button @click="readAllUnreadNotes">{{ $t('markAsReadAllUnreadNotes') }}</mk-button>
 | 
			
		||||
		<mk-button @click="readAllMessagingMessages">{{ $t('markAsReadAllTalkMessages') }}</mk-button>
 | 
			
		||||
	</div>
 | 
			
		||||
	<div class="_content">
 | 
			
		||||
		<mk-switch v-model="reduceAnimation">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,7 +7,8 @@
 | 
			
		|||
		<div class="_title" v-if="title">{{ title }}</div>
 | 
			
		||||
		<div class="_content">
 | 
			
		||||
			<div>{{ text }}</div>
 | 
			
		||||
			<mk-button @click="post()">{{ $t('post') }}</mk-button>
 | 
			
		||||
			<mk-button @click="post()" v-if="!posted">{{ $t('post') }}</mk-button>
 | 
			
		||||
			<mk-button primary @click="close()" v-else>{{ $t('close') }}</mk-button>
 | 
			
		||||
		</div>
 | 
			
		||||
		<div class="_footer" v-if="url">{{ url }}</div>
 | 
			
		||||
	</section>
 | 
			
		||||
| 
						 | 
				
			
			@ -39,6 +40,8 @@ export default Vue.extend({
 | 
			
		|||
			title: null,
 | 
			
		||||
			text: null,
 | 
			
		||||
			url: null,
 | 
			
		||||
			posted: false,
 | 
			
		||||
 | 
			
		||||
			faShareAlt
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
| 
						 | 
				
			
			@ -64,9 +67,15 @@ export default Vue.extend({
 | 
			
		|||
				instant: true,
 | 
			
		||||
				initialText: text.trim()
 | 
			
		||||
			}).$once('posted', () => {
 | 
			
		||||
				alert('a');
 | 
			
		||||
				window.close();
 | 
			
		||||
				this.posted = true;
 | 
			
		||||
				this.$root.dialog({
 | 
			
		||||
					type: 'success',
 | 
			
		||||
					iconOnly: true, autoClose: true
 | 
			
		||||
				});
 | 
			
		||||
			});
 | 
			
		||||
		},
 | 
			
		||||
		close() {
 | 
			
		||||
			window.close()
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue