private void DeleteClicked() { var modalMessage = "你确定要删除版面吗?这同时会删除掉相关的子版块、话题、帖子"; blazorModal.Show <ConfirmModal>("删除版面", BlazorModalParameter.Get("ModalText", modalMessage), BlazorModalParameter.Get("ItemToDelete", "forum")); }
private void DeleteCategoryClicked() { var modalMessage = "确定要删除子版块吗?这同时将删除相关的话题、帖子"; blazorModal.Show <ConfirmModal>("删除子版块", BlazorModalParameter.Get("ModalText", modalMessage), BlazorModalParameter.Get("ItemToDelete", "category")); }
private void DeleteTopicClicked() { var modalMessage = "确定要删除话题及相应的帖子吗?"; blazorModal.Show <ConfirmModal>("删除话题", BlazorModalParameter.Get("ModalText", modalMessage), BlazorModalParameter.Get("ItemToDelete", "topic")); }
private void DeletePostClicked(int id) { _postIdToDelete = id; var modalMessage = "确定要删除帖子吗?"; blazorModal.Show <ConfirmModal>("删除帖子", BlazorModalParameter.Get("ModalText", modalMessage), BlazorModalParameter.Get("ItemToDelete", "post-item")); }
private void DeleteTopicClicked(int topicId) { _itemIdToDelete = topicId; string modalMessage = "确定要删除话题及相应的帖子吗?"; if (_itemIdToDelete != -1) { blazorModal.Show <ConfirmModal>("删除", BlazorModalParameter.Get("ModalText", modalMessage), BlazorModalParameter.Get("ItemToDelete", "topic-item")); } }