Merge branch 'preorder-campaign-rework' into 'master'
Preorder campaign rework See merge request fronk/thetool!1074
This commit is contained in:
@@ -52,7 +52,7 @@ class PreordercampaignController extends mfBaseController {
|
||||
Helper::renderVue($this, "Preordercampaign", "Vorbestellkampagnen",
|
||||
[
|
||||
"NETWORK_OWNER_OPTIONS" => $net_owners,
|
||||
"SHOW_MISC_BUTTONS" => in_array($this->me->address_id, [1, 4807], true),
|
||||
"SHOW_MISC_BUTTONS" => in_array($this->me->address_id, ["1", "4807"], true),
|
||||
"IS_ADMIN" => $isAdmin,
|
||||
"CAMPAIGNS" => $campaigns,
|
||||
"VIEW_URL" => self::getUrl("Preorder", "Index"),
|
||||
|
||||
@@ -4,7 +4,7 @@ Vue.component('Preordercampaign', {
|
||||
<tt-table :data="window['TT_CONFIG']['CAMPAIGNS']" :config="PreordercampaignTableConfig">
|
||||
<template v-slot:top-buttons>
|
||||
<button v-if="window['TT_CONFIG']['IS_ADMIN'] === '1'" type="button" class="btn btn-primary" @click="window.location = window['TT_CONFIG']['ADD_URL']">
|
||||
<i class="fas fa-plus"></i> Vorbestellung hinzufügen
|
||||
<i class="fas fa-plus"></i> Vorbestellkampagne hinzufügen
|
||||
</button>
|
||||
<a v-if="window['TT_CONFIG']['SHOW_MISC_BUTTONS'] === '1'" class="btn btn-purple" :href="window['TT_CONFIG']['PREORDER_DISCOUNT_IMPORT_URL']">
|
||||
<i class="fas fa-tags fa-fw"></i> Gutscheincodes importieren</a>
|
||||
|
||||
Reference in New Issue
Block a user