Skip to content

Commit

Permalink
[desktop]: Disable Sky Atlas command buttons when no object is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagohm committed Oct 24, 2023
1 parent bc8dc4b commit 8a550ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions desktop/src/app/atlas/atlas.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,12 @@
</div>
</div>
<div class="col-12 flex justify-content-center">
<p-button [disabled]="refreshing" [text]="true" severity="info" (onClick)="mountSync()" icon="mdi mdi-sync" label="Sync" />
<p-button [disabled]="refreshing" [text]="true" severity="success" (onClick)="mountGoTo()" icon="mdi mdi-telescope"
<p-button [disabled]="!name || refreshing" [text]="true" severity="info" (onClick)="mountSync()" icon="mdi mdi-sync" label="Sync" />
<p-button [disabled]="!name || refreshing" [text]="true" severity="success" (onClick)="mountGoTo()" icon="mdi mdi-telescope"
label="Go To" />
<p-button [disabled]="refreshing" [text]="true" severity="success" (onClick)="mountSlew()" icon="mdi mdi-telescope"
<p-button [disabled]="!name || refreshing" [text]="true" severity="success" (onClick)="mountSlew()" icon="mdi mdi-telescope"
label="Slew" />
<p-button [disabled]="refreshing" [text]="true" (onClick)="frame()" icon="mdi mdi-image" label="Frame" />
<p-button [disabled]="!name || refreshing" [text]="true" (onClick)="frame()" icon="mdi mdi-image" label="Frame" />
</div>
</div>
</p-tabPanel>
Expand Down

0 comments on commit 8a550ef

Please sign in to comment.