mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add "Request New Authorization"
Add reauthenticate to general authenticate dialog
This commit is contained in:
@@ -202,6 +202,7 @@ void RimCloudDataSourceCollection::defineUiOrdering( QString uiConfigName, caf::
|
||||
text += isGranted ? "<font color='#228B22'>✔ Granted</font>" : "<font color='#FFA500'>❌ Not Granted</font>";
|
||||
|
||||
m_authenticate.uiCapability()->setUiName( text );
|
||||
m_authenticate.uiCapability()->setUiReadOnly( isGranted );
|
||||
|
||||
if ( isGranted )
|
||||
{
|
||||
@@ -230,15 +231,14 @@ void RimCloudDataSourceCollection::defineEditorAttribute( const caf::PdmFieldHan
|
||||
attrib->m_buttonText = "Authenticate";
|
||||
}
|
||||
}
|
||||
|
||||
if ( field == &m_addDataSources )
|
||||
else if ( field == &m_addDataSources )
|
||||
{
|
||||
if ( auto attrib = dynamic_cast<caf::PdmUiPushButtonEditorAttribute*>( attribute ) )
|
||||
{
|
||||
attrib->m_buttonText = "Add Data Sources(s)";
|
||||
}
|
||||
}
|
||||
if ( field == &m_addEnsembles )
|
||||
else if ( field == &m_addEnsembles )
|
||||
{
|
||||
if ( auto attrib = dynamic_cast<caf::PdmUiPushButtonEditorAttribute*>( attribute ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user