- send notification to native user when file request was sent via email

- updated mysql dump
This commit is contained in:
Čarodej
2022-05-18 09:50:21 +02:00
parent 3c28da2613
commit aa30b519fa
9 changed files with 84 additions and 12 deletions

View File

@@ -82,6 +82,20 @@
</span>
<chevron-right-icon size="16" class="text-theme vue-feather" />
</router-link>
<!--Open Link-->
<a
@click.native="closeCenter"
v-if="action && action.type === 'url'"
:target="action.params.target === 'blank' ? '_blank' : '_self'"
:href="action.params.url"
class="mt-4 flex items-center"
>
<span class="mr-2 whitespace-nowrap text-xs font-bold">
{{ action.params.button }}
</span>
<chevron-right-icon size="16" class="text-theme vue-feather" />
</a>
</div>
</article>
</template>

View File

@@ -59,7 +59,7 @@ const actions = {
.delete(`/api/file-request/${router.currentRoute.params.token}`)
.then((response) => {
commit('LOADING_STATE', { loading: false, data: [] })
commit('SET_UPLOAD_REQUEST', response.data)
commit('SET_UPLOAD_REQUEST_AS_FILLED')
})
.catch(() => this.$isSomethingWrong())
},
@@ -69,6 +69,9 @@ const mutations = {
SET_UPLOAD_REQUEST(state, payload) {
state.uploadRequest = payload
},
SET_UPLOAD_REQUEST_AS_FILLED(state) {
state.uploadRequest.data.attributes.status = 'filled'
},
}
const getters = {