Sharkey/src/client/components/remote-caution.vue

35 lines
651 B
Vue
Raw Normal View History

2020-03-20 21:07:02 -07:00
<template>
2020-07-24 09:36:39 -07:00
<div class="jmgmzlwq _panel"><fa :icon="faExclamationTriangle" style="margin-right: 8px;"/>{{ $t('remoteUserCaution') }}<a :href="href" rel="nofollow noopener" target="_blank" v-t="'showOnRemote'"></a></div>
2020-03-20 21:07:02 -07:00
</template>
<script lang="ts">
import Vue from 'vue';
2020-03-20 21:10:44 -07:00
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
2020-03-20 21:07:02 -07:00
export default Vue.extend({
props: {
href: {
type: String,
required: true
},
},
2020-03-20 21:10:44 -07:00
data() {
return {
faExclamationTriangle
};
}
2020-03-20 21:07:02 -07:00
});
</script>
<style lang="scss" scoped>
.jmgmzlwq {
font-size: 0.8em;
padding: 16px;
> a {
margin-left: 4px;
color: var(--accent);
}
}
</style>