onClickRemoveEnvironment(environmentName) {
        if(this.model.environments.length < 1) { return; }

        let modal = new HashBrown.Entity.View.Modal.ModalBase({
            model: {
                heading: `Remove environment "${environmentName}"`,
                message: `Are you sure want to remove the environment "${environmentName}" from the project "${this.model.settings.info.name || this.model.id}"?`
            }
        })
        .on('ok', async () => {
            try {
                await HashBrown.Service.RequestService.request('delete', 'server/projects/' + this.model.id + '/' + environmentName);

                this.update();

            } catch(e) {
                modal.setErrorState(e);

            }
        });
    }
/**
     * Event: Click remove environment
     *
     * @param {String} environmentName
     */
Click remove environment
@param {String} environmentName
Click remove environment @param { String } environmentName
onClickRemoveEnvironment(environmentName) {
        if(this.model.environments.length < 1) { return; }
        let modal = new HashBrown.Entity.View.Modal.ModalBase({
            model: {
                heading: `Remove environment "${environmentName}"`,
                message: `Are you sure want to remove the environment "${environmentName}" from the project "${this.model.settings.info.name || this.model.id}"?`
            }
        })
        .on('ok', async () => {
            try {
                await HashBrown.Service.RequestService.request('delete', 'server/projects/' + this.model.id + '/' + environmentName);
                this.update();
            } catch(e) {
                modal.setErrorState(e);
            }
        });
    }
onClickRemoveEnvironment ( environmentName ) { if ( this . model . environments . length < 1 ) { return ; } let modal = new HashBrown . Entity . View . Modal . ModalBase ( { model : { heading : ` ${ environmentName } ` , message : ` ${ environmentName } ${ this . model . settings . info . name || this . model . id } ` } } ) . on ( 'ok' , async ( ) => { try { await HashBrown . Service . RequestService . request ( 'delete' , 'server/projects/' + this . model . id + '/' + environmentName ) ; this . update ( ) ; } catch ( e ) { modal . setErrorState ( e ) ; } } ) ; }
Event: Click remove environment
 @param {String} environmentName
Event : Click remove environment @param { String } environmentName