Add new shared variable and update variable usage
This commit is contained in:
parent
7a51acbf8d
commit
238337fecb
@ -429,6 +429,13 @@ const magicActions = [{
|
|||||||
tags: 'api,tokens,rest',
|
tags: 'api,tokens,rest',
|
||||||
icon: 'goto',
|
icon: 'goto',
|
||||||
sequence: ['main', 'redirect']
|
sequence: ['main', 'redirect']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 26,
|
||||||
|
name: 'Goto: Team Shared Variables',
|
||||||
|
tags: 'team,shared,variables',
|
||||||
|
icon: 'goto',
|
||||||
|
sequence: ['main', 'redirect']
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
const initialState = {
|
const initialState = {
|
||||||
@ -665,6 +672,9 @@ async function redirect() {
|
|||||||
case 25:
|
case 25:
|
||||||
targetUrl.pathname = `/security/api-tokens`
|
targetUrl.pathname = `/security/api-tokens`
|
||||||
break;
|
break;
|
||||||
|
case 26:
|
||||||
|
targetUrl.pathname = `/team/shared-variables`
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
window.location.href = targetUrl;
|
window.location.href = targetUrl;
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,9 @@
|
|||||||
Add</button>
|
Add</button>
|
||||||
</x-slide-over>
|
</x-slide-over>
|
||||||
</div>
|
</div>
|
||||||
<div class="pb-4">You can use this anywhere.</div>
|
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span class="text-warning">@{{project.VARIABLENAME}}</span><x-helper
|
||||||
|
helper="More info <a class='text-white underline' href='https://coolify.io/docs/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
||||||
|
</div>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
@forelse ($project->environment_variables->sort()->sortBy('real_value') as $env)
|
@forelse ($project->environment_variables->sort()->sortBy('real_value') as $env)
|
||||||
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
||||||
|
@ -49,10 +49,13 @@
|
|||||||
<livewire:project.shared.environment-variable.add />
|
<livewire:project.shared.environment-variable.add />
|
||||||
</x-slot:content>
|
</x-slot:content>
|
||||||
<button @click="slideOverOpen=true"
|
<button @click="slideOverOpen=true"
|
||||||
class="font-normal text-white normal-case border-none rounded btn btn-primary btn-sm no-animation">+ Add</button>
|
class="font-normal text-white normal-case border-none rounded btn btn-primary btn-sm no-animation">+
|
||||||
|
Add</button>
|
||||||
</x-slide-over>
|
</x-slide-over>
|
||||||
</div>
|
</div>
|
||||||
<div class="pb-4">You can use this anywhere.</div>
|
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span class="text-warning">@{{environment.VARIABLENAME}}</span><x-helper
|
||||||
|
helper="More info <a class='text-white underline' href='https://coolify.io/docs/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
||||||
|
</div>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
@forelse ($environment->environment_variables->sort()->sortBy('real_value') as $env)
|
@forelse ($environment->environment_variables->sort()->sortBy('real_value') as $env)
|
||||||
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
||||||
|
@ -8,10 +8,14 @@
|
|||||||
<livewire:project.shared.environment-variable.add />
|
<livewire:project.shared.environment-variable.add />
|
||||||
</x-slot:content>
|
</x-slot:content>
|
||||||
<button @click="slideOverOpen=true"
|
<button @click="slideOverOpen=true"
|
||||||
class="font-normal text-white normal-case border-none rounded btn btn-primary btn-sm no-animation">+ Add</button>
|
class="font-normal text-white normal-case border-none rounded btn btn-primary btn-sm no-animation">+
|
||||||
|
Add</button>
|
||||||
</x-slide-over>
|
</x-slide-over>
|
||||||
</div>
|
</div>
|
||||||
<div class="pb-4">You can use this anywhere.</div>
|
<div class="flex items-center gap-2 pb-4">You can use these variables anywhere with <span class="text-warning">@{{team.VARIABLENAME}}</span> <x-helper
|
||||||
|
helper="More info <a class='text-white underline' href='https://coolify.io/docs/environment-variables#shared-variables' target='_blank'>here</a>."></x-helper>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
@forelse ($team->environment_variables->sort()->sortBy('real_value') as $env)
|
@forelse ($team->environment_variables->sort()->sortBy('real_value') as $env)
|
||||||
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
<livewire:project.shared.environment-variable.show wire:key="environment-{{ $env->id }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user