2022-01-05 08:52:42 +00:00
|
|
|
const angApp = (await import('../init.js')).default;
|
2020-05-11 19:39:11 +00:00
|
|
|
|
2022-01-07 18:30:38 +00:00
|
|
|
angApp.controller('AboutController', function ($scope, AppStateService, AppInfo, DesktopService) {
|
2020-05-17 18:12:36 +00:00
|
|
|
|
2022-01-07 18:30:38 +00:00
|
|
|
$scope.appInfo = AppInfo;
|
|
|
|
$scope.converseVersion = 'unknown';
|
|
|
|
DesktopService.getConverseVersion().then((version) => {
|
|
|
|
$scope.converseVersion = version;
|
|
|
|
$scope.$apply();
|
|
|
|
});
|
2020-05-17 18:12:36 +00:00
|
|
|
|
2020-05-11 19:39:11 +00:00
|
|
|
$scope.closeAbout = () => {
|
2020-06-07 14:32:09 +00:00
|
|
|
AppStateService.set(AppStateService.APP_STATE_DEFAULT)
|
2020-05-11 19:39:11 +00:00
|
|
|
}
|
2020-05-13 20:01:42 +00:00
|
|
|
})
|