Skip to content

Commit

Permalink
Merge pull request #12 from labbsr0x/version
Browse files Browse the repository at this point in the history
fix add version
  • Loading branch information
gutorc92 authored Aug 25, 2020
2 parents 74e28c1 + d9f6f94 commit b367ffb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Versions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
let versions = []
let newVersion = ''
let oldName = null
let envData = ['piloto', 'prod']
let envData = [
{ env: 'pilot_version', value: 'Piloto' },
{ env: 'prod_version', value: 'Producao' }
]
let envChoice = ''
async function list() {
Expand All @@ -28,7 +31,7 @@
}
async function deleteVersion(environment, version) {
try {
await api.post('/remove/ip', {
await api.post('/remove/version', {
app: nameApp,
ip: event.detail.ip
})
Expand Down Expand Up @@ -65,7 +68,7 @@
<div class="col-md-4">
<Select enhanced style="width: -webkit-fill-available;" bind:value={envChoice} label="Plataforma">
{#each envData as environment}
<Option value={environment} selected={envChoice === environment}>{environment}</Option>
<Option value={environment.env} selected={envChoice === environment.env}>{environment.value}</Option>
{/each}
</Select>
</div>
Expand Down

0 comments on commit b367ffb

Please sign in to comment.