Merge branch 'preorder-campaign-rework' into 'master'

Preorder campaign rework

See merge request fronk/thetool!1074
This commit is contained in:
Luca Haid
2025-03-05 16:39:27 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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"),

View File

@@ -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>