-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: RequiresWCSLinking plugin component mixin
* update alert language in orientation plugin * footprints: if changing link type fails, redirect to orientation plugin - not ideal if the plugin is either inline or a popout... in the future we could detect whether there are subsets or markers and edit the text to say they will be removed (either in one button or additional buttons as-per the orientation plugin)
- Loading branch information
Showing
7 changed files
with
184 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<template> | ||
<div> | ||
<v-alert | ||
v-if="!wcs_linking_available" | ||
type='warning' | ||
class="ignore-api-hints" | ||
style="margin-left: -12px; margin-right: -12px" | ||
> | ||
Please add at least one data with valid WCS to align by sky (WCS). | ||
</v-alert> | ||
|
||
<v-alert | ||
v-if="wcs_linking_available && !need_clear_astrowidget_markers &&!need_clear_subsets" | ||
type='warning' | ||
class="ignore-api-hints" | ||
style="margin-left: -12px; margin-right: -12px" | ||
> | ||
Switching alignment will reset zoom. | ||
</v-alert> | ||
|
||
<v-alert | ||
v-if="plugin_markers_exist && !need_clear_astrowidget_markers &&!need_clear_subsets" | ||
type='warning' | ||
style="margin-left: -12px; margin-right: -12px" | ||
> | ||
Marker positions may not be pixel-perfect when changing alignment/linking options. | ||
</v-alert> | ||
|
||
<v-alert v-if="need_clear_astrowidget_markers" type='warning' style="margin-left: -12px; margin-right: -12px"> | ||
Astrowidget markers must be cleared before changing alignment/linking options. | ||
<v-row justify="end" style="margin-right: 2px; margin-top: 16px"> | ||
<v-btn @click="$emit('reset-astrowidget-markers')">Clear Markers</v-btn> | ||
</v-row> | ||
</v-alert> | ||
|
||
|
||
<v-alert v-if="need_clear_subsets" type='warning' style="margin-left: -12px; margin-right: -12px"> | ||
Existing subsets must be deleted before changing alignment/linking options. | ||
<v-row justify="end" style="margin-right: 2px; margin-top: 16px"> | ||
<v-btn @click="$emit('delete-subsets')"> | ||
{{ api_hints_enabled ? | ||
'plg.delete_subsets()' | ||
: | ||
'Clear Subsets' | ||
}} | ||
</v-btn> | ||
</v-row> | ||
</v-alert> | ||
|
||
<v-alert | ||
v-if="show_link_by_wcs_button" | ||
type='warning' | ||
style="margin-left: -12px; margin-right: -12px" | ||
> | ||
cannot plot footprint when aligned by pixels (see Orientation plugin). | ||
<v-row justify="end" style="margin-right: 2px; margin-top: 16px"> | ||
<v-btn @click="link_by_wcs"> | ||
link by WCS | ||
</v-btn> | ||
</v-row> | ||
</v-alert> | ||
<v-alert v-if="viewer_items.length===0" type='warning' style="margin-left: -12px; margin-right: -12px"> | ||
no valid viewers (with necessary WCS information) to show footprint overlay. | ||
</v-alert> | ||
|
||
</div> | ||
</template> | ||
|
||
<script> | ||
module.exports = { | ||
props: ['api_hints_enabled', | ||
'wcs_linking_available', | ||
'need_clear_astrowidget_markers', | ||
'need_clear_subsets', | ||
'plugin_markers_exist', | ||
'show_link_by_wcs_button'], | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.