From 238337fecb3eee2e1e878d4afca14e237836dba2 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 23 Jan 2024 20:26:45 +0100 Subject: [PATCH] Add new shared variable and update variable usage --- resources/js/components/MagicBar.vue | 10 ++++++++++ resources/views/livewire/project/edit.blade.php | 4 +++- .../views/livewire/project/environment-edit.blade.php | 9 ++++++--- .../livewire/team-shared-variables-index.blade.php | 10 +++++++--- 4 files changed, 26 insertions(+), 7 deletions(-) diff --git a/resources/js/components/MagicBar.vue b/resources/js/components/MagicBar.vue index 4fc1fc5df..5f11d8afd 100644 --- a/resources/js/components/MagicBar.vue +++ b/resources/js/components/MagicBar.vue @@ -429,6 +429,13 @@ const magicActions = [{ tags: 'api,tokens,rest', icon: 'goto', sequence: ['main', 'redirect'] +}, +{ + id: 26, + name: 'Goto: Team Shared Variables', + tags: 'team,shared,variables', + icon: 'goto', + sequence: ['main', 'redirect'] } ] const initialState = { @@ -665,6 +672,9 @@ async function redirect() { case 25: targetUrl.pathname = `/security/api-tokens` break; + case 26: + targetUrl.pathname = `/team/shared-variables` + break; } window.location.href = targetUrl; } diff --git a/resources/views/livewire/project/edit.blade.php b/resources/views/livewire/project/edit.blade.php index 71b7a0688..0328b4ab5 100644 --- a/resources/views/livewire/project/edit.blade.php +++ b/resources/views/livewire/project/edit.blade.php @@ -23,7 +23,9 @@ class="font-normal text-white normal-case border-none rounded btn btn-primary bt Add -
You can use this anywhere.
+
You can use these variables anywhere with @{{project.VARIABLENAME}} +
@forelse ($project->environment_variables->sort()->sortBy('real_value') as $env) New Shared Variable - + + class="font-normal text-white normal-case border-none rounded btn btn-primary btn-sm no-animation">+ + Add
-
You can use this anywhere.
+
You can use these variables anywhere with @{{environment.VARIABLENAME}} +
@forelse ($environment->environment_variables->sort()->sortBy('real_value') as $env) New Shared Variable - + + class="font-normal text-white normal-case border-none rounded btn btn-primary btn-sm no-animation">+ + Add
-
You can use this anywhere.
+
You can use these variables anywhere with @{{team.VARIABLENAME}} +
+
@forelse ($team->environment_variables->sort()->sortBy('real_value') as $env)