Hi guys,
Quick one - it looks like you only allow for 'deleted' messages on the list-table view in custom models
<?php if ( rwmb_request()->get( 'model-message' ) === 'deleted' ) : ?>
<div id="message" class="updated notice notice-success is-dismissible"><p><?= esc_html( $this->model->labels['item_deleted'] ) ?></p></div>
<?php endif ?>
Whereas the 'edit' view allows for all types of message:
<?php if ( $message ) : ?>
<div id="message" class="updated notice notice-success is-dismissible"><p><?= esc_html( $this->model->labels["item_$message"] ) ?></p></div>
<?php endif ?>
Can you modify the list-table view to allow for additional messages please? We need to be able to return standard messages such as 'Item updated successfully' or custom messages such as 'Item cloned successfully' or 'Item clone failed' etc.
Cheers,
Will