66 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
77 * @module WoltLabSuite/Core/Controller/Person
88 */
9- define ( [ "require" , "exports" , "tslib" , "WoltLabSuite/Core/Form/Builder/Dialog" , "WoltLabSuite/Core/Language" , "WoltLabSuite/Core/Ui/Notification" ] , function ( require , exports , tslib_1 , Dialog_1 , Language , UiNotification ) {
9+ define ( [ "require" , "exports" , "tslib" , "WoltLabSuite/Core/Form/Builder/Dialog" , "WoltLabSuite/Core/Language" , "WoltLabSuite/Core/Ui/Notification" ] , function ( require , exports , tslib_1 , Dialog_1 , Language_1 , UiNotification ) {
1010 "use strict" ;
1111 Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
1212 exports . init = void 0 ;
1313 Dialog_1 = tslib_1 . __importDefault ( Dialog_1 ) ;
14- Language = tslib_1 . __importStar ( Language ) ;
1514 UiNotification = tslib_1 . __importStar ( UiNotification ) ;
1615 let addDialog ;
1716 const editDialogs = new Map ( ) ;
@@ -29,13 +28,13 @@ define(["require", "exports", "tslib", "WoltLabSuite/Core/Form/Builder/Dialog",
2928 informationID : informationId ,
3029 } ,
3130 dialog : {
32- title : Language . get ( "wcf.person.information.edit" ) ,
31+ title : ( 0 , Language_1 . getPhrase ) ( "wcf.person.information.edit" ) ,
3332 } ,
3433 submitActionName : "submitEditDialog" ,
3534 successCallback ( returnValues ) {
3635 document . getElementById ( `personInformation${ returnValues . informationID } ` ) . innerHTML =
3736 returnValues . formattedInformation ;
38- UiNotification . show ( Language . get ( "wcf.person.information.edit.success" ) ) ;
37+ UiNotification . show ( ( 0 , Language_1 . getPhrase ) ( "wcf.person.information.edit.success" ) ) ;
3938 } ,
4039 } ) ) ;
4140 }
@@ -52,11 +51,11 @@ define(["require", "exports", "tslib", "WoltLabSuite/Core/Form/Builder/Dialog",
5251 personID : personId ,
5352 } ,
5453 dialog : {
55- title : Language . get ( "wcf.person.information.add" ) ,
54+ title : ( 0 , Language_1 . getPhrase ) ( "wcf.person.information.add" ) ,
5655 } ,
5756 submitActionName : "submitAddDialog" ,
5857 successCallback ( ) {
59- UiNotification . show ( Language . get ( "wcf.person.information.add.success" ) , ( ) => window . location . reload ( ) ) ;
58+ UiNotification . show ( ( 0 , Language_1 . getPhrase ) ( "wcf.person.information.add.success" ) , ( ) => window . location . reload ( ) ) ;
6059 } ,
6160 } ) ;
6261 document . getElementById ( "personInformationAddButton" ) . addEventListener ( "click" , ( event ) => {
0 commit comments