cleanup unused code
parent
d218e00bd3
commit
48ecb8fc4b
@ -1,22 +0,0 @@
|
||||
/* global Whisper */
|
||||
|
||||
// eslint-disable-next-line func-names
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
window.Whisper = window.Whisper || {};
|
||||
|
||||
Whisper.ConversationLoadingScreen = Whisper.View.extend({
|
||||
initialize() {},
|
||||
|
||||
render() {
|
||||
this.dialogView = new Whisper.ReactWrapperView({
|
||||
className: 'app-loading-wrapper',
|
||||
Component: window.Signal.Components.ConversationLoadingScreen,
|
||||
props: this.props,
|
||||
});
|
||||
|
||||
this.$el.append(this.dialogView.el);
|
||||
},
|
||||
});
|
||||
})();
|
||||
@ -1,31 +0,0 @@
|
||||
/* global Whisper */
|
||||
|
||||
// eslint-disable-next-line func-names
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
window.Whisper = window.Whisper || {};
|
||||
|
||||
Whisper.SessionToggleView = Whisper.View.extend({
|
||||
initialize(options) {
|
||||
this.props = {
|
||||
active: options.active,
|
||||
};
|
||||
},
|
||||
|
||||
render() {
|
||||
this.toggleView = new Whisper.ReactWrapperView({
|
||||
className: 'session-toggle-wrapper',
|
||||
Component: window.Signal.Components.SessionToggle,
|
||||
props: this.props,
|
||||
});
|
||||
|
||||
this.$el.append(this.toggleView.el);
|
||||
},
|
||||
|
||||
toggle() {
|
||||
this.props.active = !this.props.active;
|
||||
this.toggleView.update(this.props);
|
||||
},
|
||||
});
|
||||
})();
|
||||
Loading…
Reference in New Issue