Skip to content

Commit

Permalink
feat:Users can choose version while updating.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghengxin committed Mar 19, 2024
1 parent f56b22d commit c5a5a35
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main/src/components/Apps/ComposeConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@
<b-input
v-model="service.image"
:placeholder="$t('e.g.,hello-world:latest')"
:readonly="state == 'update'"
@input="changeIcon"
></b-input>
</template>
<b-dropdown-item
key="latest"
v-show="state === 'install'"
@click="() => {
service.image = service.image.split(':')[0] + ':latest';
$emit('updateIsUncontrolledInstallParams', false);
Expand All @@ -36,7 +34,7 @@
</b-dropdown-item>
<b-dropdown-item
key="stable"
v-show="state === 'install' && mainStableVersion !== ''"
v-show="mainStableVersion !== ''"
@click="() => {
service.image = service.image.split(':')[0] + ':' + mainStableVersion;
$emit('updateIsUncontrolledInstallParams', false);
Expand Down

0 comments on commit c5a5a35

Please sign in to comment.