-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add refresh button for storage container in job upload storage panel #2242
Conversation
} | ||
}) | ||
// refresh containers after refresh button is clicked | ||
view.storagePanel.azureBlobCard.storageContainerComboBox.button.addActionListener { _ -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can _ ->
be removed? #Resolved
@@ -203,6 +201,7 @@ abstract class SparkSubmissionJobUploadStorageCtrl(val view: SparkSubmissionJobU | |||
errorMsg = "Can't get storage containers, check if the key matches" | |||
} | |||
} | |||
refreshContainersEnabled = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The enable operation needs to be put into .doOnEach
#Resolved
private val storageAccountTip = "The default storage account of the HDInsight cluster, which can be found from HDInsight cluster properties of Azure portal." | ||
private val storageKeyTip = "The storage key of the default storage account, which can be found from HDInsight cluster storage accounts of Azure portal." | ||
private val storageAccountLabel = JLabel("Storage Account").apply { toolTipText = storageAccountTip } | ||
val storageAccountField = JTextField().apply { toolTipText = storageAccountTip } | ||
private val storageKeyLabel = JLabel("Storage Key").apply { toolTipText = storageKeyTip } | ||
val storageKeyField = JTextArea().apply { toolTipText = storageKeyTip } | ||
private val storageContainerLabel = JLabel("Storage Container") | ||
val storageContainerComboBox = ComboBox<String>() | ||
val storageContainerComboBox = ComboboxWithBrowseButton().apply { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May we can remove the type ComboBox
from the value storageContainerComboBox
, just name it storageContainerUI
may be enough. #Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Ship it!
To fix #2151