for api servers, removed the ability to select a container

This commit is contained in:
vladimir.kuznetsov 2024-02-21 22:57:15 +05:00
parent 89d0a8107d
commit b3ed57aee7
3 changed files with 11 additions and 2 deletions

View file

@ -220,6 +220,11 @@ bool ServersModel::isDefaultServerCurrentlyProcessed()
return m_defaultServerIndex == m_processedServerIndex;
}
bool ServersModel::isDefaultServerFromApi()
{
return qvariant_cast<bool>(data(m_defaultServerIndex, IsServerFromApiRole));
}
bool ServersModel::isProcessedServerHasWriteAccess()
{
return qvariant_cast<bool>(data(m_processedServerIndex, HasWriteAccessRole));