typo: configmapName -> configMapName

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/588/head
Ryan Wang 2022-07-13 10:13:52 +08:00
parent 64240d3caf
commit ab0a7deda3
2 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@ const handleFetchSettings = async () => {
const handleFetchConfigMap = async () => {
try {
const response = await axiosInstance.get(
`/api/v1alpha1/configmaps/${plugin.value.spec.configmapName}`
`/api/v1alpha1/configmaps/${plugin.value.spec.configMapName}`
);
configmap.value = response.data;
@ -103,8 +103,8 @@ const handleSaveConfigMap = async () => {
try {
saving.value = true;
if (!configmap.value.metadata.name && plugin.value.spec.configmapName) {
configmap.value.metadata.name = plugin.value.spec.configmapName;
if (!configmap.value.metadata.name && plugin.value.spec.configMapName) {
configmap.value.metadata.name = plugin.value.spec.configMapName;
}
settings.value.spec.forEach((item: SettingSpec) => {

View File

@ -49,7 +49,7 @@ export interface PluginSpec {
enabled?: boolean;
module?: PluginModule;
settingName?: string;
configmapName?: string;
configMapName?: string;
}
export interface PluginStatus {