Comments (5)
Hi @zHaytam
Thank you for using my module:)
Since ABP setting values can be empty, I think it's better to allow user to pass an empty content from the frontend.
For default values, I'm thinking adding a "Reset to default" button to each group. What's your opinion?
from abp.settingui.
Hi @wakuflair
I think "Reset to default" is a good idea, maybe "Reset" is a better name for the button, because if you delete a setting value, it will inherit from the upstream (ABP calls it "fallback", see: hikalkan's comment)
And please also add "Inherited" or "Fallback" label to the settings which have no customized value.
from abp.settingui.
If a user deletes the content of a setting, it will be saved as blank in the DB. This overrides the default value with "nothing".
I have a setting item with none-value by default:
When I use the SettingUI to change another item, the none-value item's value ("") is committed and I can see an extra row in the database:
Unchanged setting items may not need to be committed. What do you think? @wakuflair
from abp.settingui.
@gdlcf88
AFAIK, If you provide a default value to your setting, and later you set exactly the default value to it, ABP will delete the record from the setting table.
from abp.settingui.
Maybe "Save" buttons for each setting item is a good way to avoid all these problems.
from abp.settingui.
Related Issues (20)
- An exception occurred when the setting was saved
- 出现两个邮件设置?
- Release new version HOT 3
- The ABP commercial setting management reference this module throw an exception HOT 1
- KeyNotFoundException: The given key 'Group1' was not present in the dictionary. HOT 6
- 升级到abp 4.2.2跑不起来
- Cannot compact with the setting management page for abp commercial 4.3.0-rc.1 HOT 1
- 不知道发生了什么,我的abp是4.2.2的mvc 分层的那种,请大佬指点,我是按照配的,各个模块都已经注入了。 HOT 2
- Admin can be locked out
- How to Remove Existing "Emailing" Settings? HOT 2
- Does it support Blazor server UI? HOT 4
- Not compatible with version 6.0.2? HOT 2
- Localizable strings for setting groups HOT 3
- Perform setting save validation HOT 3
- 设置布尔类型的时候,会报错
- 本地调试可以,部署后swagger正常,但是页面访问不了
- Upgrade abp version to 6.0.1 HOT 1
- Basic Theme NullReferenceException HOT 5
- 大佬,有计划升级到abp7.0吗? HOT 1
- When saving, support parameter setting value provider
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abp.settingui.