mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Added no participants label
This commit is contained in:
parent
03b14fc239
commit
36e9bdf745
2 changed files with 9 additions and 2 deletions
|
|
@ -134,7 +134,8 @@ import UIKit
|
|||
@objc static let conference_waiting_room_video_disabled = NSLocalizedString("Video is currently disabled",comment:"")
|
||||
@objc static let dialog_accept = NSLocalizedString("Accept",comment:"")
|
||||
@objc static let dialog_decline = NSLocalizedString("Decline",comment:"")
|
||||
|
||||
@objc static let conference_empty = NSLocalizedString("You are currently alone in this group call",comment:"")
|
||||
|
||||
// FROM ANDROID END
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -26,8 +26,10 @@ import linphonesw
|
|||
|
||||
// Layout constants
|
||||
|
||||
|
||||
let participantsListTableView = UITableView()
|
||||
let noParticipantsLabel = StyledLabel(VoipTheme.empty_list_font,VoipTexts.conference_empty)
|
||||
|
||||
|
||||
|
||||
var callsDataObserver : MutableLiveDataOnChangeClosure<[CallData]>? = nil
|
||||
|
||||
|
|
@ -63,6 +65,10 @@ import linphonesw
|
|||
ConferenceViewModel.shared.isMeAdmin.readCurrentAndObserve { (meAdmin) in
|
||||
edit.isHidden = meAdmin != true
|
||||
}
|
||||
|
||||
super.contentView.addSubview(noParticipantsLabel)
|
||||
noParticipantsLabel.center().done()
|
||||
noParticipantsLabel.isHidden = ConferenceViewModel.shared.conferenceParticipants.value?.count ?? 0 > 0
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue